<?php
// 个人中心数据
include_once 'conn.php';
$token = $_POST['token'];
$arr = [];
$sql = $db->query("SELECT user_id,user_name,user_icon,user_create_time FROM user
                   WHERE user_token = '$token'");
while ($row = $sql -> fetch_assoc()) {
    array_push($arr,$row);
}
echo json_encode($arr);
$db -> close();
?>